Feature: Crear un tag, Crear un nuevo post, agregarle el tag y publicarlo ,y eliminar el post y validar que ya no aparece al buscar por tag
Scenarios
|
Chart |
Status Progress |
||||
|---|---|---|---|---|---|
|
1
|
|
||||
| Total duration: | |||||
| 1m 5.997s |
Scenario: Como autor creo un tag, creo un post y le asigno el tag,elimino el post y valido que no aparece en filtro por tag
Before
0m 2.200s
Given
I go to page "<HOST>" "ghost/#/signin"
0m 6.969s
And
I sign in with "<USERNAME>" and "<PASSWORD>"
0m 1.569s
And
I go to page "<HOST>" "ghost/#/tags"
0m 6.115s
And
I create new tag with "$number_1"
0m 1.287s
When
I click new post
0m 1.145s
And
I set post attributes title "$name_1" and body "$string_2"
0m 1.147s
And
I select tag with name "$$number_1"
0m 4.152s
And
I close settings menu
0m 0.712s
And
I publish the post
0m 1.171s
And
I go to page "<HOST>" "ghost/#/posts?type=published"
0m 6.807s
And
I filter posts by tag with name "$$number_1"
0m 0.936s
Then
I validate the post with "$$name_1" exists
0m 0.945s
And
I go to page "<HOST>" "ghost/#/posts?type=published"
0m 5.858s
And
I Click a post with title "$$name_1"
0m 2.998s
And
I press settings button
0m 0.819s
And
I click delete from settings
0m 5.920s
And
I delete post
0m 6.048s
And
I go to page "<HOST>" "ghost/#/posts?type=published"
0m 6.585s
And
I filter posts by tag with name "$$number_1"
0m 1.618s
Then
I validate the post with "$$name_1" not exists
0m 0.986s
After
0m 0.010s
Screenshots
Before
NO IMAGE AVAILABLE
Given
I go to page "<HOST>" "ghost/#/signin"
And
I sign in with "<USERNAME>" and "<PASSWORD>"
And
I go to page "<HOST>" "ghost/#/tags"
And
I create new tag with "$number_1"
When
I click new post
And
I set post attributes title "$name_1" and body "$string_2"
And
I select tag with name "$$number_1"
And
I close settings menu
And
I publish the post
And
I go to page "<HOST>" "ghost/#/posts?type=published"
And
I filter posts by tag with name "$$number_1"
Then
I validate the post with "$$name_1" exists
And
I go to page "<HOST>" "ghost/#/posts?type=published"
And
I Click a post with title "$$name_1"
And
I press settings button
And
I click delete from settings
And
I delete post
And
I go to page "<HOST>" "ghost/#/posts?type=published"
And
I filter posts by tag with name "$$number_1"
Then
I validate the post with "$$name_1" not exists
After
NO IMAGE AVAILABLE